﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PatternFactoryAbs
{ 
    public class Factory1 : IFactory
    {
        public IMobaiProduct imobaiProduct()
        {
           return new F1MobiProduct();
        }

        public ITeslaProduct iteslaProduct()
        {
            return new F1TeslaProduct();
        }
    }

    public class Factory2 : IFactory
    {
        public IMobaiProduct imobaiProduct()
        {
            return new F2MobiProduct();
        }

        public ITeslaProduct iteslaProduct()
        {
            return new F2TeslaProduct();
        }
    }


}
